<?php
Utils_RecordBrowserCommon::uninstall_recordset('SCTV_AcceptanceChangeRequest');

$fields = array(
    array('name'=>_M('Requirement'), 'type'=>'select', 'param'=>array('SCTV_Requirement'=>'Requirement Code'), 'required'=>true, 'visible'=>true),
    array('name'=>_M('Employee'), 'type'=>'crm_contact', 'param'=>array('field_type'=>'select', 'crits'=>array(), 'format'=>array('CRM_ContactsCommon','contact_format_default')), 'required'=>true, 'visible'=>true),
    array('name'=>_M('Status'), 'type'=>'integer', 'required'=>true, 'visible'=>true, 'extra'=>true, 'display_callback'=>array('SCTV_AcceptanceCommon', 'display_acceptance_request_status'), 'QFfield_callback'=>array('SCTV_AcceptanceCommon', 'QFfield_acceptance_request_status')),
    array('name'=>_M('Note'), 'type'=>'long text', 'required'=>false, 'visible'=>true),
    array('name'=>_M('Result'), 'type'=>'long text', 'required'=>false, 'visible'=>true)
);
Utils_RecordBrowserCommon::install_new_recordset('SCTV_AcceptanceChangeRequest', $fields);
Utils_RecordBrowserCommon::set_caption('SCTV_AcceptanceChangeRequest', _M('Acceptance Change Request'));
Utils_RecordBrowserCommon::add_default_access('SCTV_AcceptanceChangeRequest');

//Utils_RecordBrowserCommon::new_addon('SCTV_Acceptance', 'SCTV_Acceptance', 'acceptance_change_request_addon', _M('Change Request'));

?>